<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素消失</title>
    <style>

        div{
            width: 200px;
            height: 200px;
            border: 5px solid #000;
        }
        .d1{background-color: red}
        .d1:hover{
            transform: scale(0);
        }
        .d2{background-color: green}
        .d2:hover{
            display: none;
        }
        .d3{background-color: blue}
    </style>
</head>
<body>
<!--两种消失方式，1.display:none; 2.transform:scale(0)-->
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</body>
</html>